package com.ruoyi.guarantee.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.guarantee.domain.BAgreement;

/**
 * 履约保函Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-05
 */
public interface BAgreementMapper 
{
    /**
     * 查询履约保函
     * 
     * @param id 履约保函主键
     * @return 履约保函
     */
    public BAgreement selectBAgreementById(Long id);

    /**
     * 查询履约保函列表
     * 
     * @param bAgreement 履约保函
     * @return 履约保函集合
     */
    public List<BAgreement> selectBAgreementList(BAgreement bAgreement);

    /**
     * 新增履约保函
     * 
     * @param bAgreement 履约保函
     * @return 结果
     */
    public int insertBAgreement(BAgreement bAgreement);

    /**
     * 修改履约保函
     * 
     * @param bAgreement 履约保函
     * @return 结果
     */
    public int updateBAgreement(BAgreement bAgreement);

    /**
     * 删除履约保函
     * 
     * @param id 履约保函主键
     * @return 结果
     */
    public int deleteBAgreementById(Long id);

    /**
     * 批量删除履约保函
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBAgreementByIds(Long[] ids);

    List<BAgreement> selectyyzBAgreementList(BAgreement bAgreement);

    List<BAgreement> selectyyzgBAgreementList(BAgreement bAgreement);

    List<BAgreement> selectHistoryBAgreementList(BAgreement bAgreement);

    Map<String, String> selectMapList(BAgreement bAgreement);
}
